import { cn, sn } from "@/lib/util";
import React, { CSSProperties, ReactNode } from "react";
interface Props {
  /**字号大小，默认20px */
  size?: number;
  style?: CSSProperties;
  className?: string;
  children?: ReactNode;
}
/**标题组件。自带font-black，默认字号20，可以修改 */
export default function Title({ children, className, style = {}, size = 20 }: Props) {
  return (
    <div className={cn("font-black", className)} style={sn({ fontSize: size }, style)}>
      {children}
    </div>
  );
}
